<?php
    $data = array('success' => $success);
    echo $this->Js->object($data);
?>